package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.ScmOutsourcingFeedingParam;
import com.xinsoft.entity.po.ScmOutsourcingFeeding;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinsoft.entity.vo.ScmOutsourcingFeedingDetailVo;
import com.xinsoft.entity.vo.ScmOutsourcingFeedingPageVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author ZYM
 * @description 针对表【scm_outsourcing_feeding(委外投料)】的数据库操作Mapper
 * @createDate 2023-08-31 15:30:45
 * @Entity com.xinsoft.entity.po.ScmOutsourcingFeeding
 */
public interface ScmOutsourcingFeedingMapper extends BaseMapper<ScmOutsourcingFeeding> {

    IPage<ScmOutsourcingFeedingPageVo> findPageListByParam(Page<ScmOutsourcingFeedingPageVo> page, @Param("param") ScmOutsourcingFeedingParam param);

    IPage<ScmOutsourcingFeedingPageVo> findPageListByParam(@Param("param") ScmOutsourcingFeedingParam param);

    ScmOutsourcingFeedingDetailVo getFeedingById(Integer id);

    /**
     * 获取被委外出库引用的数量
     * @param id 委外投料id
     * @return int
     */
    int getOutsourcingOutstockCiteCount(Integer id);
}




